<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>欢迎您</title>
        <script language="JavaScript">
            input = prompt("请输入姓名","name");
            alert("欢迎你!"+input);
        </script>
    </head>
    <body>

    </body>
</html>